// src/api/mapApi.js
import request from '../request/request';

// 获取地图景点数据
export const fetchMapData = (scenic_id) => {
  return request({
    url: '/maps/index',
    method: 'post',
    data: { scenic_id },
  });
};


// 获取特定景点的位置数据
export const fetchLocationData = (map_id) => {
  return request({
    url: '/map/index',
    method: 'post',
    data: { map_id },
  });
};